<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台首页</title>

<link rel="stylesheet" href="../../../Public/static/css/bootstrap.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../Public/static/css/font-awesome.min.css">
<link rel="stylesheet" href="../../../Public/admin/css/index.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../Public/admin/css/main.css" type="text/css" media="screen" />

<script type="text/javascript" src="../../../Public/static/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="../../../Public/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../../Public/admin/js/tendina.min.js"></script>
<script type="text/javascript" src="../../../Public/admin/js/common.js"></script>

</head>
<body>
<!--顶部-->
<div class="row">
    <div class="layout_top_header">
      <div style="float: left"><span style="font-size: 16px;line-height: 45px;padding-left: 20px;color: #fff">众规武汉-管理后台</h1></span></div>
      <div id="ad_setting" class="ad_setting">
          <a class="ad_setting_a" href="javascript:; ">
            <i class="icon-user glyph-icon" style="font-size: 20px"></i>
            <span>管理员</span>
            <i class="icon-chevron-down glyph-icon"></i>
          </a>
          <ul class="dropdown-menu-uu" style="display: none" id="ad_setting_ul">
            <li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-user glyph-icon"></i> 个人中心 </a> </li>
            <li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-cog glyph-icon"></i> 设置 </a> </li>
            <li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-signout glyph-icon"></i> <span class="font-bold">退出</span> </a> </li>
          </ul>
      </div>
    </div>
  </div>
  <!--顶部结束-->

  <!--主体开始-->
  <div class="row main-cont">
    <div class="col-md-12">
      <!--左侧菜单-->
      <div class="col-md-2 layout_left_menu">
        <ul id="menu">
          <li class="childUlLi">
           <a href="#"  target="menuFrame"><i class="glyph-icon icon-home"></i>首页</a>
            <ul>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>最新动态</a></li>
            </ul>
          </li>
          <li class="childUlLi">
            <a href="#"  target="menuFrame"> <i class="icon-group"></i>用户管理</a>
            <ul>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>用户管理</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>角色管理</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>权限管理</a></li>
            </ul>
          </li>
          <li class="childUlLi">
            <a href="#" target="menuFrame"> <i class="glyph-icon icon-reorder"></i>内容管理</a>
            <ul>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>栏目分类</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>发布文章</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>新闻列表</a></li>
            </ul>
          </li>
          <li class="childUlLi">
            <a href="#" target="menuFrame"> <i class="icon-bullhorn"></i>互动管理</a>
            <ul>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>投票系统</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>推送内容</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>公告管理</a></li>
            </ul>
          </li>
          <li class="childUlLi">
            <a href="#"> <i class="icon-wrench"></i>微信基础设置</a>
            <ul>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>首次关注</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>自动回复</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>关键字回复</a></li>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>自定义菜单</a></li>
            </ul>
          </li>
          <li class="childUlLi">
            <a href="#"> <i class="icon-spinner"></i>数据魔方</a>
            <ul>
              <li><a href="#"><i class="glyph-icon icon-chevron-right"></i>关注数</a></li>
            </ul>
          </li>
        </ul>
      </div>
      <!--左侧菜单结束-->

      <!--中间内容-->
        <div class="col-md-10">
          <div class="route_bg">
            <a href="#">主页</a><i class="glyph-icon icon-chevron-right"></i>
            <a href="#">权限管理</a><i class="glyph-icon icon-chevron-right"></i>
            <a href="#">权限列表</a>
            <span class="pull-right"><a style="cursor:pointer;" data-toggle="modal" data-target="#myModal">【增加】</a></span>
          </div>
          <div class="col-md-12 data-table table-striped">
            <form class="ids">
              <table>
                  <thead>
                      <tr>
                          <th class="row-selected">
                              <input class="checkbox check-all" type="checkbox">
                          </th>
                          <th>编号</th>
                          <th>权限分类</th>
                          <th>权限名称</th>
                          <th>权限说明</th>
                          <th>状态</th>
                          <th>日期</th>
                          <th>操作</th>
                      </tr>
                  </thead>
                  <tbody>
                      <!--顶级数据-->
                      <tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="6"></td>
                          <td>6</td>
                          <td>【角色管理】</td>
                          <td>角色管理</td>
                          <td>角色、级别分类</td>
                          <td>锁定</td>
                          <td>2015-07-01 12:02:02</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/6">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/6">删除</a>
                          </td>
                      </tr>
                      <!--二级数据-->
                      <tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="7"></td>
                          <td>7</td>
                          <td></td>
                          <td>浏览角色</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 12:02:30</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/7">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/7">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="8"></td>
                          <td>8</td>
                          <td></td>
                          <td>添加角色</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 12:02:52</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/8">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/8">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="9"></td>
                          <td>9</td>
                          <td></td>
                          <td>修改角色</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 12:03:05</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/9">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/9">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="10"></td>
                          <td>10</td>
                          <td></td>
                          <td>删除角色</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 12:03:22</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/10">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/10">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="11"></td>
                          <td>11</td>
                          <td>【权限管理】</td>
                          <td>权限管理</td>
                          <td>对权限、功能的管理、操作需谨慎</td>
                          <td>锁定</td>
                          <td>2015-07-01 12:05:02</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/11">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/11">删除</a>
                          </td>
                      </tr>
                      <!--二级数据-->
                      <tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="12"></td>
                          <td>12</td>
                          <td></td>
                          <td>浏览权限</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:39:21</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/12">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/12">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="13"></td>
                          <td>13</td>
                          <td></td>
                          <td>添加权限</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:39:49</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/13">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/13">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="14"></td>
                          <td>14</td>
                          <td></td>
                          <td>修改权限</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:40:07</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/14">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/14">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="15"></td>
                          <td>15</td>
                          <td></td>
                          <td>删除权限</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:40:23</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/15">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/15">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="16"></td>
                          <td>16</td>
                          <td>【项目管理】</td>
                          <td>项目管理</td>
                          <td>项目操作请注意</td>
                          <td>锁定</td>
                          <td>2015-07-01 13:42:26</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/16">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/16">删除</a>
                          </td>
                      </tr>
                      <!--二级数据-->
                      <tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="17"></td>
                          <td>17</td>
                          <td></td>
                          <td>项目列表</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:43:41</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/17">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/17">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="18"></td>
                          <td>18</td>
                          <td></td>
                          <td>添加项目</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:43:56</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/18">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/18">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="19"></td>
                          <td>19</td>
                          <td></td>
                          <td>修改项目</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:44:06</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/19">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/19">删除</a>
                          </td>
                      </tr><tr>
                          <td><input class="ids row-selected" type="checkbox" name="id[]" value="20"></td>
                          <td>20</td>
                          <td></td>
                          <td>删除项目</td>
                          <td></td>
                          <td>锁定</td>
                          <td>2015-07-01 13:44:16</td>
                          <td>
                              <a title="编辑" href="/admin/competence/edit/id/20">编辑</a>
                              <a title="删除" href="/admin/competence/delete/id/20">删除</a>
                          </td>
                      </tr>                
                  </tbody>
              </table>
            </form>
            <!-- 分页 -->
            <div class="pages pull-right" style="padding:30px;"> <div><li class="rows">共<b>8</b>条记录&nbsp;第<b>1</b>页/共<b>1</b>页</li></div>                        </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- 中间内容结束 -->
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
   aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <form action="/admin/competence/insert" method="post">
                <div class="modal-header">
                    <button type="button" class="close" 
                       data-dismiss="modal" aria-hidden="true">
                          &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                       添加权限
                    </h4>
                </div> 
                <div class="modal-body">
                    <div class="form-group">
                        <label for="sid">权限分类：</label>
                        <select name="sid" class="form-control">
                            <option value="0">顶级目录</option>
                            <option value="6">角色管理</option><option value="11">权限管理</option><option value="16">项目管理</option><option value="21">新闻管理</option><option value="26">系统管理</option><option value="29">留言管理</option><option value="34">招聘管理</option><option value="39">案例管理</option>                        </select>
                    </div>
                    <div class="form-group">
                        <label for="name">权限名称：</label>
                        <input name="cname" type="text" class="form-control" placeholder="" check-type="required" required-message="权限名称不能为空">
                    </div>
                    <div class="form-group">
                        <label for="description">权限说明：</label>
                        <textarea name="description" class="form-control" rows="3"></textarea>
                    </div>
                    <label class="checkbox-inline">
                      <input type="radio" name="status" value="1" checked> 正常
                    </label>
                    <label class="checkbox-inline">
                      <input type="radio" name="status" value="0"> 锁定
                    </label>
                </div>
                <div class="modal-footer">
                    <input type="submit" value="提交" class="btn btn-primary" />
                    <button type="button" class="btn btn-default" 
                       data-dismiss="modal">关闭
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- /.modal -->
<!-- 底部版权 -->
<script language="JavaScript">             
    function delete_confirm(e) 
    {
        if (event.srcElement.outerText == "删除") 
        {
            event.returnValue = confirm("删除是不可恢复的，你确认要删除吗？");
        }
    }
    document.onclick = delete_confirm;
</script>